package com.charon.auth.properties;

import com.charon.auth.variety.browser.BrowserProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
  *@ClassName: SecurityProperties
  *@Description: 加载用户配置文件中的配置
  *@Author: Charon [248135724@qq.com]
  *@Date: 2019/1/17 0017 20:44
  *@Version: 1.0
  */
@ConfigurationProperties(prefix = "charon.security")
public class SecurityProperties {

    private BrowserProperties browser=new BrowserProperties();

    private ValidateCodeProperties code=new ValidateCodeProperties();

    public ValidateCodeProperties getCode() {
        return code;
    }

    public void setCode(ValidateCodeProperties code) {
        this.code = code;
    }

    @Bean
    public BrowserProperties getBrowser() {
        return browser;
    }

    public void setBrowser(BrowserProperties browserProperties) {
        this.browser = browserProperties;
    }
}
